Validate url and post_id presence for images