validate User
Validates user authentication status based on the presence and validity of the stored token. If the token is valid, sets isUserAuthenticated to true; otherwise, logs out the user.
Validates user authentication status based on the presence and validity of the stored token. If the token is valid, sets isUserAuthenticated to true; otherwise, logs out the user.