Fixed bug in editing users
Added security to editing users