finish up validation logic