Updated edit user functionality