use data-errmsg instead of title attribute