fixed my code for login