Adding logged out and displaying messages