Added form validation and outputing of retrieved content.