refactor cake php dialogue validation to include used keyword