Add IsPasswordValid method to Secret