Implemented XSS protection for user inputs