beging validation implementation