require user login before allowing new posts and editing posts