Improved form validations for registration form