Validating email addresses using regular expressions