redirect to login if user not logged in
Merge pull request #823 from dimagi/login_redirect

redirect to login if user not logged in