Adding validation/sanitization to backend