fixing email registration endpoint in the modal