restricts certain actions to logged in users
assigns new post + categories to current user
logs in user on registration