Updates to code - sanitizes input to stop posting of bad values from foreign sites.