Regex validation for email id and password