Patch 1

In the case: user model is not defined or user model don't have associations 
Auth is faild if correct data exists user database.
fixed