fixed issues loging in and loging out as admin