ticket:5 add login/logout logic/view
ticket:5 correct log out action
ticket:5 add tests for login and register actions