Edit user function created