cancel and cancel_result updated to handle errors

deleted a line break from cancel.php

cancel_result updated to handle errors