Add error message on register fail.