error in validate - fixed
error in validate - fixed