sanitize user inputs to prevent problems