Complete chapter exercises

* Store emails in database in lowercase by downcasing before saving
* Update regex used for email validation to prevent emails in format 'foobar@example..com'
* Alter test to prove above behaviour