login added and route selection