Added logout button if the user is logged in