Updated login route to resolve undefined index