This was happening to me in Safari on my Mac. I went into Preferences for Safari, and deleted some entries in AutoFill|User names and Passwords.
This is a Moodle issue
I keep getting this all over Moodle and I have never ever encountered this before, unless its a password field, which the enrolment key or course name should be
Albert