adding try/catch to show template errors, added to check the user