added input number validation fixing