Fix redirect location on failed user creation or login