script was in the wrong file

moved the ajax script from login.html to register.html, where it belongs