Login button adapts to display logged in user's name and becomes logout button