fixed user login crash on re-login