Custom Logout functionality added.