minor bug fix to login