Update navbar logic to display different buttons based on user login status