When i try to clear the value after getting success in api and i want to on same page , it started showing validation, please help