Fix redirect logic for logging in