fixed function names in validataion