added content type validator for post image