In validation.py made a function check for xxxxx substitue

In validation.py made a function check for xxxxx substitue when
administrator add new blog post and use the link tags template or img
template.