Add validation to keyword search field