Validations while registration

Handling validations while registration