add error code to user