added logout error messages