Issue 7: Input validation and Issue 9: HTML encode text before sending to the page (PARTIAL fix)