add a klp.auth.requireLogin method that can be passed functions that require login