fixed advanced search paginations and not submitting empty fields.