Error on submitting empty search form fixed