Added template for pdf upload
Duplicate error handiling