In engagement.py, took care of several edge cases, clarifying related error messages.