solves login problem