So basically in an html file, I have an input field, with the id "UserPassword". In my .js file I have a function register() where it checks if you are Registered, and