Fixed authentication record related error in user model