bug fix redirect login page if logged in