log in bug fix