- fixed usage of prepared statements durin auth - we may use 2 different queries in the same time.
  Credits for reporting the bug and the problem go to Steve Brisson
  Closes issue #6 on GH.
(cherry picked from commit 8d74b952f6e7c79489e976940b52e74a80df2101)