Change Config::validate to return an enum