Query fix for signup