redirect user to home page if not logged in