replace errormessage with message