add logout button only if its a loggedin user