Bugfix: show error message on registration problem

Closes #3039.