fix search bug, add validator to searchform