Fixed routing in agent controller for embedded login.