add function to get custom errors messages