begin validation function

begin validation function