client side validations for registration