fix registration form and login