fix search validations - js+controller