Added a function to validate e-mails