Logout functionality

Added logout functionality to the menu to be able to log out from the application, which was not possible before.