change redirect for logging in and out