changing type error field to return correct key