Revert "Fix error in findByToken function"

This reverts commit fdc1c6eef5ac6a728d5e30dea6d1ca475a073844.
Revert "Update User.java"

This reverts commit 05b901b8ca4ca6c99091868f1aeee60ddd84fc76.