validateUser

Validates the user by checking the token stored in the encrypted preferences. If the token is valid, it sets isUserAuthenticated to true and populates the user property. Otherwise, it logs out the user.