only allow logged in users to create a post
redirect users who aren't logged in to the main page