Handling signing in and out including server submit