fixed errormessage on logout