fix exception about login