bug fix log in