Added delete user to user ui. Improved permissions check.