exit(-1) when login failed