validation beginning