updated diagnostic form code validation