Added additional validation

Validation checks for positive integers and proper range numbers