It's not redirecting to the login page