Added Pattern regex validator and tests