fixed email registration endpoint