Adding in the update logic for account and also fixing up the permissions to use shiro