[ADDED]    Added invalidate() to Security.

Added a method to security do invalidate the current authentication session, and check if a specific user has been authenticated.