Added support for floating numbers

Created a custom number validator class that allows full integers and
floating point numbers.