Fix error when a user tries to register with email of an already registered but not confirmed user