trying to figure out how to add error messages to the html without screwing things up