put the error into the context, so that it can be used by the templates
started to work on simplifying the errors thrown at the user; this is not the final version