client side validation for signup