While loop until client gets a correct id and pass