def clean_password(self):
value = self.cleaned_data.get('<STR_LIT:password>')<EOL>if value not in self.valid_passwords:<EOL><INDENT>raise forms.ValidationError('<STR_LIT>')<EOL><DEDENT>return value<EOL>
Check that the password is valid.