remove unnecessary messages, redirect on logout