Fix errors regarding login time.