Added expiration feature for token authentication