Added fields validation

plugins, smtp and databases
Merge pull request #2 from tblasv/master

Add if existing checks for config sections