Handle logins by redirecting to login page