solves the login problem