creating errors template
adding error helper