Updated validation function to new [p,x,y,z] return values