how to validate a textbox in c