Add validation rule for group id