Validate form for presence of required fields

Make following fields compulsory: entity_type, entity and view mode.
If any error occurs, show the error in the dialog before proceeding further.

d.o issue: https://drupal.org/node/2279175