function checkRegisterError() { const xhr = new XMLHttpRequest(); xhr.open("GET", "http://ipaddressandport/