Validate the prompted numbers

Validated the numbers prompted