added email pattern validation