Check whether inputted ID is duplicated or not when registering