Fixed digit regex check and added sanity check to ensure timeout is not 0
Updated call in console/app/controllers/settings_controller.rb to also use the configured timeout