Logout option functional.