I moved the error message from the html to the javascript