Implemented Login and Logout logging