Added custom validation for registration form attributes