added Pattern and Email rules