home page redirects to login page