Now adding two error response messages: ALREADYREGISTERED and INVALID COMMAND.