Edited the regular expression (::COOKIE_REGEX) - "role" is now optional