add some form validation, persist results sorting and results per page