If the user is logged in they will be redirected to the create a post page if they navigate to the home page or login page.