number validation

Added functionality which checks for number validation