Added checkValid to newNumber
Fixed numberValid error

Fixed a bug where numberValid wasn't working.