It's un-pythonic to use assert statements for form validation. (Also, you can turn them off with a command-line switch.)