done! also moved the error messages into html.