Two methods of data validation in the procedure