Fixed session not being removed from database.
Functional login page.
Fixed syntax mistake on register template.