prohibit empty types and media links to empty or nonexistent files
use correct class
created own rule to validate fields to be empty or have an url