Why do we need to clear the session here? Add a NOTE