add logs to database for todo items.
added sessions to controller, added logic to templates whether user logged in