add flash error for invalid URL