add require_valid_user to main couchdb define