Fixed issue where stored_location was being wiped out after it was stored. Prevented redirecting user to their desired page after login.
Updated so that logging into one device doesn't kill the session on another logged-in device.