fixed loggin routing bug