Fixed bug in user credential verification.