Added username control: it has to be a valid email address.
Added new function validate_email that checks through a regular expression the email validity.
Added test_user_creation_with_invalid_email to test this.