Updated login sequence