Updated templates.
Added authentication.