refactoring user controller
edit user and change password working, need tests
fixed tests for update and edit.