now only accepts valid numbers for temperature and thickness
fixed input