fixes the login problem from last commit