fixed a bug on form validation for signup