To validate an email id