allow to use customised field for error