[#45] Add format validation for email and unit test.