added number verification for calculator