Add error page if statename is invalid