Edit user function

Implement edit user function