fixed bug in registration form