Error check template upload