fixed error when clicking cancel on edit user form.