fixing registration validations