login page will rediect to home page if already logged in