add validation to second page