Add email validator and refact validation classes
Add config test