Added quick fix to make addInventory automatically add a chemical and manufacturer if they haven't existed in the database already. Also checked size for float value in validate.php