Fixed navigation issue in doLogin method