added extensions validation for "media" module