Fix next redirect in login