Fixed issue updating the button caption after logging in or out