Added condition for register error as it is mandatory

Condition for register errors is mandatory, so this PR allows to specify it.
See more: http://xmpp.org/rfcs/rfc6120.html#stanzas-error-syntax