catch invalid url and render error message