added beginning validation