added errormessage to character class