correct validation pattern and groups