Fix a bug that prevented users to register under a new username