replaced ActionMessage with ActionError to avoid ClassCastExcption in the error tag when handling exceptions/errors