add a validate rule