rewriting the sign-in app as a chrome app for offline use.