checkValid fixed now it is