Reset the form to pristine when creating or updating an environment