login and routing working