Working on the validation for the registration