Fixed bug that session invalidates automatically wouldn't unregister in
the User instance