Sanitize inputs on server side