bugfix for wrong user registration handling