Login(failed) bug fix