fixed a bug, due to which permission errrors were not displayed while trying to update users