Implement Unit2-HW2

This shows off input validation using the python re (regular expression)
module, and substituting in error messages to the form into the jinji2
template fields e.g. {{username}} using POST