Added code to pass a token with a set expiration date from the client.
Added token check on the server side.