remove router and updated authentication configuration