register-validation updated to work