Adding validation for 3rd and 5th steps