Static file is required while creating/updating an element that have static checkbox checked

Proper error message appear when you tries to save static element without providing a static file.

Implemented JS and PHP validator.