Fixed edit user function.