login as bug fix