added validator to the set password flow.