Fixed error message logout bug