Added validations for registration form.