Create log out function.