Make require_logged_in decorator