additions to routes.py and form_validate.py