Add error handling.
Check that thought is non-empty before submitting.