changing the login form to make it works