change router when login