Login and logout views
refactor urls and views