make validation optional