[[.tagcollection]] [[.begin name=login_required singleton=True]] [[ title = 'This page requires that you log in to continue' ]] [[= title ]] [[-- this is about the only time you should have a form definition in an Active Tag --]]
[[= title ]]
[[ if '_spy_login_user' in request.post():{ ]] [[ } ]]   
Invalid user / password!
Login:
Password:
Remember this login
[[.end]] [[.begin name=login singleton=True]] [[ if '_spy_login_user' in request.post():{ ]] [[ } ]]   
Invalid user / password!
Login:
Password:
Remember this login
[[.end]] [[.begin name=validation singleton=True]] [[.attr name=err ]] [[\ if hasattr(err, 'sub_errors'): data = [(ve.element, ve.description) for ve in err.sub_errors] else: data = [(err.element, err.description)] ]]
Please correct the following:
[[.end]]