updated secret setting validator