Added condition for register error as it is mandatory
Merge pull request #59 from krnekit/register-error-condition

Added condition for register error as it is mandatory