Added some login requirements and some user-based filtering
Fixed tests to work with authentication