Add answer with checks.

Added new socket feature for lecturer to add answer.