Sanitisation and validation in media manager