Terrorism stop and search ‘valid’