Only modify username cookie if it changes

Also update LoginPanel with new cookie information after login.