fix validation on some filds in registration form