Added test for login sequence.