Fixed Validation Bug

Fixed a bug that was allowing some invalid values for some keys through.