fixed require login redirects and warnings
bug fixes, turned tests green
Merge pull request #60 from meara/require_login

fixed require login redirects and warnings