add validation functions stp3