Added the rest of the implementation to the login module and server side interceptor to switch whenever requested.