Move the validation into a helper method.   Pass it a list of keys/values that should be validated against.   Inside that helper method you can parse once and just select/verify many values.