cleaned up interactions between user and framework
login template, cookie generation and db interaction