Properly escape the error messages (and add forgotten layout template)