add client-side validation to the MODx.window.CreateUserGroup

[#11898] 2.3.1 can not create a new user group
1. add client-side validation to the MODx.window.CreateUserGroup
2. don't use cached window object; it needs updated record on each window