fixed wrong link
added retrieving token from cookie