Security check for uploading template