Bug fix: login button switches to logout button upon login