bug fix in login