fixed the optional field issue in usergroups