Fixed the redirection after the login.
Create a class that deals with the cached manifest.