fixes copy paste fail, now if a registration error occurs, it will be printed correctly
Merge pull request #165 from clef/fix-register-error-error

Fixes PHP error if a registration error occurs