changed group to groups in user model