last stage of validation