bug fixes in registration form