added logged in validation before allowing to create new post