Filter sanitized functionality added. It returns more complete errors compared to the default filter function