Added REST calls to add/remove a user's groups and added a check for the edit password page.