added email field to user.
added support for email field to templates.
added JS validation to all submit forms.