Now the login functionality works