Pattern matching added for email validation