Fix redirect to login page after logout