Fix server model, add check for user_id