Added web page form login functionality.
Added logout functionality.
Wrapped login template with base template.