add checkNumber function to app