fix redirect to login