catch a user inputting the same x value more than once