Implemented login (no log out though)

A few templates now extend the base template.