updated Optional assertion to support async validation