Add a unit test to email with mixed case verification
Refactor before_save statement