marks login commit
adds passport auth, redirects on authorized and unauthorized access