Completed code for user log out session.