email validator added with specs, refactoring