fix bug login check