Implements requireLogin() to redirect unauth'd users.
Issue #1