added better error message when validating
apply metadata edits in current element before saving
fixed #148
fixed issue when trying to open metadata editor for postgis layer