Check if user is logged in on login page and redirect