Typo fix; import Form instead of form
Making validation of form on submission

* views.py: calling validate_on_submit() and flashing the user message
Support for flashed messages in base template
error handling in login forms