added error checking to reading.php and removed html tags from input