Validation

Added validation for numeric fields.

Added range value checking.