Fixed some bugs in quickAuth code.
Fixed some bugs in quickAuth code.