Fixing attempt login sequence