[FIX] Log SQL errors on invalid checkUserPassword

Fixes #1366 once merged.