Added value check for X/Y column

Just more error checking