Added some logic in process.php and a few sanitizing functions in sanitize_input.php