Finished the email validation code