Updated posts validation to accept user_id