actual login/logout process got messed up, fixing