Use of undefined variable in `User` entity 

Fix for possible notice.