Fix error page when form empty