fixing registration form bug