validationFunctn