Fix style, add allowed_client_ids, move check_if_exists method, remove user_required attr