Fixed the validation

Fixed number validation and between 1 and 100 validation.