added check for nil
renamed link
decrypt cookie data