UNcovered a flaw in the query function as I was working on the register command