adds validation for decimal and location fields