* fix session clearing on error * use singleton context to manage user state * implement remember-me functionality * fix errors * fix more errors