Added registration form validations.