checks for a matching cookie value if before displaying to user