fix bug when login fail