add error message check (NOTE: MUST BE REGEX)