Add Design pattern strategy for the valid password.